package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_bonus;
import cn.com.api.service.base.U_bonusServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_bonusService extends U_bonusServiceBase {

	public ApiU_bonus findBonusByID(Integer bonus_id);

	public ApiU_bonus findNormalBonusHis(String bonus_id);

	// 新增对象后返回记录ID
	public int U_bonusInsertion(ApiU_bonus u_bonus);

	public List<ApiU_bonus> findBonusByMap(Map map);

	public ApiU_bonus getBonusInfoByMap(Map map);

	public void deleteBonus(Integer bonusid);

	// 根据广告ID获取红包明细
	public ApiU_bonus getBonusInfoByAdvertID(String advert_id);

	// 收回红包金额
	public void takeBackBonus(Integer hours) throws Exception;
	
	//发出的红包列表
	public List<ApiU_bonus> getSendNormalBonusList(String user_id, PageInfo page);

}
